<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="./Demo/script/jquery-1.7.2.js"></script>
    <script type="text/javascript">

        $(function () {
            // //批量操作单选
            // $(":radio").val(["radio1"]);
            // //批量操纵复选框的选中状态
            // $(":checkbox").val(["checkbox1","checkbox2"]);
            // //批量操纵多选下拉框的选中状态
            // $("#multiple").val(["mul2","mul3","mul4"]);
            // //批量操纵单选下拉框的选中状态
            // $("#single").val(["sin2"]);

            $(":radio,:checkbox,#multiple,#single").val(["radio2","checkbox1","mul3","sin3"]);

        });

    </script>
</head>
<body>

单选：
<input name="radio" type="radio" value="radio1"/>radio1
<input name="radio" type="radio" value="radio2"/>radio2
<br/>
多选：
<input name="checkbox" type="checkbox" value="checkbox1"/>checkbox1
<input name="checkbox" type="checkbox" value="checkbox2"/>checkbox2
<input name="checkbox" type="checkbox" value="checkbox3"/>checkbox3
<br/>
下拉多选 ：
<select id="multiple" multiple="multiple" size="4">
    <option value="mul1">mul1</option>
    <option value="mul2">mul2</option>
    <option value="mul3">mul3</option>
    <option value="mul4">mul4</option>
</select>
<br/>
下拉单选 ：
<select id="single">
    <option value="sin1">sin1</option>
    <option value="sin2">sin2</option>
    <option value="sin3">sin3</option>
</select>
</body>
</html>